<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="/cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css"  />
</head>
<body>
<!-- <h2>Hello World!!!!!!</h2> -->
<!-- <a href="/mgmt/demo/demoList.jsp">demo</a><br/><br/> -->
<!-- <a href="/mgmt/bsUser/bsUserList.jsp">bsUser</a> -->

<nav class="navbar navbar-inverse" role="navigation">
		<div class="container-fluid">
		
			<div>
				<ul class="nav navbar-nav">
	<!-- 				<li><a href="index/bootstrap.html" target="bottomIframe"><span>bootstrap</span></a></li> -->
	<!-- 				<li><a href="index/react.html" target="bottomIframe"><span>react</span></a></li> -->
	<!-- 				<li><a href="index/easyUI.html" target="bottomIframe"><span>easyUI</span></a></li> -->
					<li class="dropdown" id="jangle_menu_xtgl" style="display:block;">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							系统管理
							<b class="caret"></b>
						</a>
						<ul class="dropdown-menu">
							<li><a href="/mgmt/bsUser/bsUserList.jsp" target="bottomIframe">用户管理</a></li>
							<li role="separator" class="divider"></li>
							<li><a href="/mgmt/demo/demoList.jsp" target="bottomIframe">DEMO管理</a></li>
							<li><a href="/mgmt/demo2/demoList.jsp" target="bottomIframe">DEMO管理2</a></li>
<!-- 							<li><a href="mgmt/bsRole/bsRoleList.jsp" target="bottomIframe">角色管理</a></li> -->
<!-- 							<li><a href="mgmt/bsMenu/bsMenuList.jsp" target="bottomIframe">菜单管理</a></li> -->
						</ul>
					</li>
					<li class="dropdown" id="other_menu_yk" style="display:none;">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							应用管理
							<b class="caret"></b>
						</a>
						<ul class="dropdown-menu">
							<li><a href="mgmt/bsTest/bsTestList.jsp" target="bottomIframe">DEMO管理v2</a></li>
							<li><a href="mgmt/jgAssets/jgAssetsList.jsp" target="bottomIframe">我的资产</a></li>
							<li><a href="mgmt/jgAssets/jgAssetsListForBook.jsp" target="bottomIframe">资产检索</a></li>
							<li><a href="mgmt/bsVisit/bsVisitListAll.jsp" target="bottomIframe">访客列表</a></li>
							<li><a href="mgmt/bsVisitCount/bsVisitCountList.jsp" target="bottomIframe">访客统计</a></li>
							<li><a href="mgmt/bsExcuteHistory/bsExcuteHistoryList.jsp" target="bottomIframe">执行记录</a></li>
							<li><a href="free.jsp" target="bottomIframe">内存信息</a></li>
							<li><a href="mgmt/myFiles/myFilesList.jsp" target="bottomIframe">我的文件</a></li>
						</ul>
					</li>
				</ul>
			</div>
			<div style="float:right;">
				<a id="logout" class="navbar-brand" href="#" onclick="logout()"><span>退出登录</span></a>
			</div>
		</div>
	</nav>
	<!-- Iframe 框 -->
	<div class="content">
		<iframe id="bottomIframe" src="/mgmt/demo/demoList.jsp?r=8" name="bottomIframe"
			width="100%" height="1500px;" style="border: 0px;"></iframe>
	</div>


<script type="text/javascript" src="/cdn.bootcss.com/jquery/3.3.1/jquery.min.js" ></script>
<script type="text/javascript" src="/cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js" ></script>
<script type="text/javascript">
// 注销
function logout(){
	$.ajax({
		url:"/bsUserCtrl/logout",
		type:"POST",
		dataType:"json",
		cache:false,
		success:function(data){
			alert("操作成功")
			location.reload();
		},
		error:function(){
			alert("操作异常");
		}
	});
}
$(function(){
// 	// 如果用户在线，就显示注销按钮。
// 	$.ajax({
// 		url:"/bsUserCtrl/status",
// 		type:"POST",
// 		dataType:"json",
// 		cache:false,
// 		success:function(data){
// 			console.log(data);
// 			if(data.code == "10001"){
// 				$("#logout").show();
// 			}
// 		}
// 	});
});
</script>
</body>
</html>
